<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>伸缩布局【携程网】</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }
        body {
            min-width: 320px;
            max-width: 540px;
            margin: 0 auto;
        }
        header {
            width: 100%;
            height: 100px;
        }
        header img {
            width: 100%;
            height: 100%;
        }
        nav {
            padding: 5px;
        }
        .row {
            width: 100%;
            height: 88px;
            display: flex;
            flex-direction: row;
            border-radius:5px;
            background-color: #fa6c54;
            margin-bottom: 5px;
        }
        nav .row:nth-child(2) {
            background-color: #4ea0ec;
        } 
        nav .row:nth-child(3) {
            background-color: #43c796;
        }
        .row3 {
            flex: 1;
        }
        .row div{
            border-left: 1px solid #fff;
        }
        .row div:first-child {
            border: 0;
        }
        .column2 {
            display: flex;
            flex-direction: column;
        }
        .column2 a {
            flex: 1;
            line-height: 44px;
            text-align: center;
            font-size: 16px;
            text-shadow: 0 2px 1px rgba(0, 0, 0, 0.3);
            /* 添加文字阴影  水平 垂直 模糊 颜色 */
            color: #fff;
            text-decoration:none;
        }
        .column2 a:first-child {
            border-bottom: 1px solid #fff;
        }
        
    </style>
</head>
<body>
    <header>
        <img src="../img/xcw-gg.jpg" >
    </header>
    <nav>
        <div class="row">
            <div class="row3">
            </div>
            <div class="row3 column2">
                <a href="#">海外酒店</a>
                <a href="#">特价酒店</a>
            </div>
            <div class="row3 column2">
                <a href="#">团购</a>
                <a href="#">民宿·客栈</a>
            </div>
        </div>
        <div class="row">
            <div class="row3">
            </div>
            <div class="row3 column2">
                <a href="#">火车票</a>
                <a href="#">特价机票</a>
            </div>
            <div class="row3 column2">
                <a href="#">汽车票·船票</a>
                <a href="#">专车·租车</a>
            </div>
        </div>
        <div class="row">
            <div class="row3">
            </div>
            <div class="row3 column2">
                <a href="#">门票1</a>
                <a href="#">目的地攻略1</a>
            </div>
            <div class="row3 column2">
                <a href="#">邮轮旅行</a>
                <a href="#">定制旅行</a>
            </div>
        </div>
        <div class="row">
           <div class="row3 column2">
                <a href="#">门票</a>
                <a href="#">目的地攻略</a>
            </div>
            <div class="row3 column2">
                <a href="#">门票</a>
                <a href="#">目的地攻略</a>
            </div>
            <div class="row3 column2">
                <a href="#">邮轮旅行</a>
                <a href="#">定制旅行</a>
            </div>
        </div>
    </nav>
</body>
</html>